<!DOCTYPE html>
<html>
<head>
    <title>almond: Simple Test</title>
    <script type="text/javascript" src="doh/runner.js"></script>
    <script type="text/javascript" src="doh/_browserRunner.js"></script>
    <script type="text/javascript" src="simple-built.js"></script>
    <script type="text/javascript">
	var master = new doh.Deferred();

        require(['foo', 'bar', 'baz'], function(foo, bar, baz) {
            doh.register('simple',
                [{
                    name: 'simple',
                    timeout: 2000,
                    runTest: function() {
                        doh.is('foo', foo.name);
                        doh.is('bar', bar.name);
                        doh.is('baz', baz.name);
                        doh.is('bar', baz.barName);
                        baz.callIt(function (bar) {
                            doh.is('bar', bar.name);
                            master.callback(true);
                        });
                    }
                }]
            );
            doh.run();

        });
    </script>
</head>
<body>
    <h1>almond: Simple Test</h1>
    <p>Check console for messages</p>
</body>
</html>
